/*
 * @Author: your name
 * @Date: 2020-10-15 09:57:24
 * @LastEditTime: 2020-10-15 11:13:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \tpf-fore\src\core\store\modules\core.js
 */
const app = {
  state: {
    user: {},
    menus: [],
    flag: false
  },
  mutations: {
    SET_USER: (state, user) => (state.user = user),
    SET_MENUS: (state, menus) => (state.menus = menus),
    SET_FLAG: (state, flag) => state.flag = flag
  },
  getters: {
    user: state => state.user,
    menus: state => state.menus.data,
  }
};
export default app;
